# -*- coding: utf-8 -*-
# @Time : 2021/7/3 10:58
# @Author : 摘星星的小女孩
# @Email : wayne_lau@aliyun.com
# @File : front_my_account.py
# @Project : ecshop
from  selenium import webdriver
from selenium.webdriver.common.by import By

driver=webdriver.Chrome()
driver.maximize_window()
#登录
driver.get("http://192.168.4.138/ecshop/user.php")
driver.implicitly_wait(30)
driver.find_element(By.NAME,"username").send_keys("李秀")
driver.find_element(By.NAME,"password").send_keys("123456")
driver.find_element(By.NAME,"submit").click()
driver.find_element(By.XPATH,"/html/body/div[1]/div/div/a[1]").click() #点击【我的账户】